import 'dart:convert';

import 'package:http/http.dart' as http;

import '../utils/header.dart';
// 登录接口封装
class LoginApi{
    static login({required String userName, required String password}) async{
      Map<String,String> paramsMap = {};
      paramsMap['userName'] = userName;
      paramsMap['password'] = password;
      var uri = Uri.https('api.devil.org','/gapi/user/login',paramsMap);
      final response = await http.post(uri,headers: hiHeaders());
      Utf8Decoder utf8decoder = const Utf8Decoder();
      String bodyString = utf8decoder.cconvert
    }
}